﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassProject.DAL;

namespace ClassProject.BAL
{
    class BannerDetailsBAL
    {
        private BannerDetailsDAL bnDAL = new BannerDetailsDAL();

        public BannerDetailsBAL()
        {

        }
        public int Insert_BAL()
        {         
            try
            {
                return bnDAL.Insert();
            }
            catch
            {
                throw;
            }
            finally
            {
                bnDAL = null;
            }
        }

        public int Update_BAL()
        {          
            try
            {
                return bnDAL.Update();
            }
            catch
            {
                throw;
            }
            finally
            {
                bnDAL = null;
            }
        }

        public int Delete_BAL()
        {  
            try
            {
                return bnDAL.Delete();
            }
            catch
            {
                throw;
            }
            finally
            {
                bnDAL = null;
            }
        }
    }
}
